NXP Semiconductors /LPC11D14 /CT32B0 /CTCR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTCR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (TIMERMODE)CTM0 (CT32B_CAP0)CIS0RESERVED

CTM=TIMERMODE, CIS=CT32B_CAP0

Description

Count Control Register (CTCR). The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting.

Fields

CTM

Counter/Timer Mode. This field selects which rising PCLK edges can increment Timer’s Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: every rising PCLK edge

0 (TIMERMODE): Timer Mode: every rising PCLK edge

1 (RISINGEDGE): Counter Mode: TC is incremented on rising edges on the CAP input selected by bits 3:2.

2 (FALLLINGEDGE): Counter Mode: TC is incremented on falling edges on the CAP input selected by bits 3:2.

3 (RISINGFALLINGEDGE): Counter Mode: TC is incremented on both edges on the CAP input selected by bits 3:2.

CIS

Count Input Select. When bits 1:0 in this register are not 00, these bits select which CAP pin is sampled for clocking. Note: If Counter mode is selected in the TnCTCR, the 3 bits for that input in the Capture Control Register (TnCCR) must be programmed as 000.

0 (CT32B_CAP0): CT32Bn_CAP0

RESERVED

Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.

Links

()